package com.syg.servlet08_getRespHTML;

import java.io.PrintWriter;

public class _02_PrintWriterProxy extends PrintWriter {
    private PrintWriter pw = null;

    public _02_PrintWriterProxy(PrintWriter pw) {
        super(pw);
        this.pw = pw;
    }
    //截获写内容写入buffer
    public void write(int c) {
        char a = (char) c;
        String s = new String(new char[] {a});
        _04_HtmlBuffer.addStr(s);
        pw.write(c);
    }
}
